<!--
 * @Author: 张久冬
 * @Date: 2021-12-21 15:31:43
 * @
# Description:
-->
<template>
  <div class="login-account">
    <el-form :rules="rules" :model="account">
      <el-form-item label="手机号" prop="name">
        <el-input v-model="account.name"></el-input>
      </el-form-item>
      <el-form-item label="验证码" prop="password">
        <el-input type="password" v-model="account.password"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from 'vue'
import { rules } from '../config/account-config'

export default defineComponent({
  setup() {
    const account = reactive({
      name: '',
      password: ''
    })

    return {
      rules,
      account
    }
  }
})
</script>

<style scoped></style>
